home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / ProgramF / CRYSTAL / CRW9 / DEV / INCLUDE / Ufjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-01-24  |  982 b   |  49 lines

  1. /*
  2. ** File:    UFJob.h
  3. ** Author:  Rick Cameron
  4. ** Date:    13 Mar 93
  5. **
  6. ** Purpose: Declarations of types and functions to support job management.
  7. */
  8.  
  9. #if !defined (UFJOB_H)
  10.  
  11. #define UFJOB_H
  12. // make sure the structures are byte-aligned
  13. #if !defined(PLAT_UNIX) && !defined (MAINWIN)
  14. #if defined(_MSC_VER)
  15.   #pragma pack(1)
  16. #elif defined(__BORLANDC__)
  17.   #pragma option -a1
  18. #endif
  19. #endif
  20.  
  21. #ifdef __cplusplus
  22. extern "C"
  23. {
  24. #endif
  25.  
  26. struct JobInfo
  27. {
  28.     UFTInt32u jobId;
  29.     struct JobInfo FAR *prev;
  30.     struct JobInfo FAR *next;
  31.  
  32.     // use this pointer to point to your data block
  33.     void FAR *data;
  34. };
  35.  
  36. extern void InitForJob (UFTInt32u jobId);
  37. extern void TermForJob (UFTInt32u jobId);
  38.  
  39. extern struct JobInfo FAR *FindJobInfo (UFTInt32u jobId);
  40.  
  41. // you must implement these
  42. extern void InitJob (struct JobInfo FAR *jobInfo);
  43. extern void TermJob (struct JobInfo FAR *jobInfo);
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif // !defined (UFJOB_H)
  49.